{extend name="adminheader:header"/}
{block name="content"}
    <body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>修改{$user.u_name}的收货地址</h5>
                    </div>
                    <div class="ibox-content">
                        <form action="{:url('/admin/User/editAddressPost')}" method="post" class="form-horizontal js-ajax-form m-t">
                            <input type="hidden" name="id" value="{$list.id}" />
                            <input type="hidden" name="uid" value="{$list.uid}" />
                            <div class="form-group">
                                <label class="col-sm-3 control-label">会员姓名<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" value="{$list.u_name}" placeholder="请输入会员姓名" disabled="disabled" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">收货人<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input name="a_name" type="text" class="form-control" value="{$list.a_name}" placeholder="请输入收货人" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">收货人手机号码<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input name="a_tel" type="text" class="form-control" value="{$list.a_tel}" placeholder="请输入收货人手机号码" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">收货人地址<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input name="a_address" type="text" class="form-control" value="{$list.a_address}" placeholder="请输入收货人地址" />
                                </div>
                            </div>
                             <div class="form-group">
                                <label class="col-sm-3 control-label">状态<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                   <input type="radio" name="a_status" id="inlineRadio1" value="1" {$list.a_status == 1 ? 'checked':''} style="cursor: pointer;margin-right:5px"/>默认地址&nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" name="a_status" id="inlineRadio2" value="2" {$list.a_status == 2 ? 'checked':''} style="cursor: pointer;margin-right:5px"/>其他地址
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">添加时间<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input class="form-control js-bootstrap-datetime" type="text" name="addtime" value="{:date('Y-m-d H:i',$list['addtime'])}">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                    <button class="btn btn-primary js-ajax-submit" type="submit">保存</button>
                                    <a class="btn btn-default" href="{:url('/admin/User/indexAddress',array('id'=>$list['uid']))}">返回</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script src="/admin/js/admin.js"></script>
{/block}